#ifndef __GS_GAME_H__
#define __GS_GAME_H__

#define GAME_IDLE    0
#define GAME_RUNNING 1
#define GAME_OVER    2

struct Client;

typedef struct Game {
    int status;

    char* name; 

    struct Client* hero;
    struct Client* sword;
    struct Client* boss;
} Game;

Game* GameCreate(const char* name);
void GameDestroy(void* game);
int GameJoinIn(Game* game, struct Client* client);
int GameLeave(Game* game, struct Client* client);
int GameIsPreparedToJudge(Game* game);
int GameProceed(Game* game);
int GameToBuffer(Game* game, char** b);
void GameReset(Game* game);

#endif
